package ${filePackageName};

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 首页页面请求
 *
 * @author ${projectAuthor}
 * @version 1.0
 * @date ${nowDate}
 */
@ApiIgnore
@Controller
public class IndexViewController {

	@GetMapping(value = "/index.html")
	public String index(Model model){
		model.addAttribute("title", "${projectSysName}");
		model.addAttribute("author", "${projectAuthor}");
		return "index";
	}

	@GetMapping(value = "/")
	public String indexIndex(Model model){
		model.addAttribute("title", "${projectSysName}");
		model.addAttribute("author", "${projectAuthor}");
		return "index";
	}

	@GetMapping(value = "/login.html")
	public String login(Model model){
		model.addAttribute("title", "${projectSysName}");
		model.addAttribute("author", "${projectAuthor}");
		return "login";
	}

}
